package com.liy.redisson.controller;

import com.liy.redisson.service.SendMailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.mail.MessagingException;

/**
 * @author ly
 * @date 2022/11/10 10:42
 */
@RestController
public class SendMail {


    @Autowired
    private SendMailService sendMailService;

    /**
     * 测试邮件发送
     */
    @GetMapping("sendMail")
    public void  sendMail(){
        //发送简单的正文
        sendMailService.sendMail();

    }

}
